# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: Giuseppe Calà <jiveaxe@gmail.com>
 
pkgname=pacmanlogviewer
pkgver=1.5.1
pkgrel=1
pkgdesc="Inspect pacman log files"
arch=('loong64' 'x86_64')
url='https://github.com/gcala/pacmanlogviewer/'
license=('GPL')
depends=('qt5-base' 'hicolor-icon-theme')
makedepends=('cmake' 'qt5-tools')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/gcala/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('ab24393cfe1213d563441bd4c5df1e51d564b6aebc55b59238a0c61ff737181af11721b8755acd5827ad7582a07a1c062fa2ab85c7ac0e035f56fce62e5b8ed0')
 
build() {
  cd "${pkgname}-${pkgver}"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_WITH_QT5=ON .
  make
}

package() {
  cd "${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
} 
